/* 
 * File:   main.cpp
 * Author: haoliang.donghl
 *
 * Created on 2009年7月13日, 下午5:09
 */

#include <stdlib.h>
#include "assign.h"

/*
 * 
 */
int main(int argc, char** argv) {
    numOfApp = 4;
    numOfPM = 4;
    initMatrix();

    upBound = 0.6;
    lowBound = 0.4;

    available[0] = false;
    available[1] = true;
    available[2] = true;
    available[3] = true;
    
    appNeeds[0] = 0.3;
    appNeeds[1] = 0.7;
    appNeeds[2] = 0.5;
    appNeeds[3] = 0.2;

    appSize[0] = 5;
    appSize[1] = 10;
    appSize[2] = 15;
    appSize[3] = 5;

    assign[0][0] = -1;
    assign[0][1] = -1;
    assign[0][2] = 1;
    assign[0][3] = -1;
    assign[1][0] = -1;
    assign[1][1] = 0;
    assign[1][2] = 1;
    assign[1][3] = -1;
    assign[2][0] = -1;
    assign[2][1] = 1;
    assign[2][2] = -1;
    assign[2][3] = 0;
    assign[3][0] = -1;
    assign[3][1] = -1;
    assign[3][2] = -1;
    assign[3][3] = 1;

    doCalculate();
    
    destoryMatrix();
    return (EXIT_SUCCESS);
}

